package gate

import (
	"BJXM_Shooting/game"
	"BJXM_Shooting/login"
	"BJXM_Shooting/msg"
)

func init() {
	msg.Processor.SetRouter(&msg.C2S_Register{}, login.ChanRPC) //注册
	msg.Processor.SetRouter(&msg.C2S_Login{}, login.ChanRPC)    //登录
	msg.Processor.SetRouter(&msg.C2S_Matching{}, game.ChanRPC)  //匹配
	//msg.Processor.SetRouter(&msg.C2S_Pong{}, game.ChanRPC)      //心跳包

	// 战斗
	msg.Processor.SetRouter(&msg.C2S_BattleReady{}, game.ChanRPC)        //准备游戏
	msg.Processor.SetRouter(&msg.C2S_BattleLoadComplete{}, game.ChanRPC) //加载战斗哦完毕
	msg.Processor.SetRouter(&msg.C2S_BattleShotComplete{}, game.ChanRPC) //战斗-箭中靶了,射箭完毕.然后服务器可以通知下一位射箭者
	msg.Processor.SetRouter(&msg.C2S_BattleShot{}, game.ChanRPC)         //发出射箭
	msg.Processor.SetRouter(&msg.C2S_BattleEmoji{}, game.ChanRPC)        //发出表情

}
